package org.bonorsoft.modules.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.bonorsoft.modules.user.entity.MobileUserDepart;
import org.bonorsoft.modules.user.mapper.MobileUserDepartMapper;
import org.bonorsoft.modules.user.service.IMobileUserDepartService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MobileUserDepartServiceImpl extends ServiceImpl<MobileUserDepartMapper, MobileUserDepart> implements IMobileUserDepartService {
    /**
     * 根据部门id获取该部门对应信息
     * @param deptId
     * @return
     */
    @Override
    public List<MobileUserDepart> getListByDeptId(String deptId) {
        QueryWrapper<MobileUserDepart> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("dept_id", deptId);
        return this.list(queryWrapper);
    }
}
